
#import "SEGStatisticsModel.h"

#if __has_include(<Commom/SEGToolsHeader.h>)
#import <Commom/SEGToolsHeader.h>
#else
#import "SEGToolsHeader.h"
#endif

@implementation SEGStatisticsModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
-(instancetype)init
{
    self = [super init];
    if (self) {
        _yesterday = @"";
        _today = @"";
        _all = @"";
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setYesterday:(NSString*)yesterday{
    _yesterday = [[SEGUtils ValueToString:yesterday]copy];
}
- (void)setToday:(NSString*)today{
    _today = [[SEGUtils ValueToString:today]copy];
}

-(void)setAll:(NSString *)all{
    _all = [[SEGUtils ValueToString:all]copy];
}
@end
